home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_lag_hints.cog < prev    next >
Text File  |  1999-11-15  |  6KB  |  324 lines

  1. # Jones 3D Cog Script
  2. #
  3. # lag_hints.cog
  4. #
  5. # level hints    
  6. #
  7. # [DS]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.     message        startup
  15.     message        removed
  16.     message        entered
  17.     message        taken
  18.     message        user1
  19.     message        user2
  20.     message        user3
  21.     message        user4
  22.     message        user5
  23.     message        user6
  24.     message        user7
  25.         
  26.     thing            player        local
  27.     thing            hint1
  28.     thing            hint2
  29.     thing            hint3
  30.     thing            hint4
  31.     thing            hint5
  32.     thing            hint6
  33.     thing            hint7
  34.     thing            hint8
  35.     thing            hint9
  36.     thing            hint10    
  37.     thing            hint11    
  38.     thing            hint12    
  39.     thing            hint13    
  40.     thing            hint14    
  41.     thing            hint15
  42.  
  43.     thing            hint16
  44.     thing            hint17    
  45.     thing            hint18    
  46.     thing            hint19    
  47.     thing            hint20    
  48.     thing            hint21    
  49.     thing            hint22
  50.     thing            hint23    
  51.     thing            hint24    
  52.     thing            hint25    
  53.     thing            hint26    
  54.     thing            hint27    
  55.     thing            hint28
  56.     thing            hint29    
  57.     thing            hint30    
  58.  
  59.     thing            hint40
  60.  
  61.     int        got_shovel=0                local
  62.     int        dug=0                        local
  63.     int        returning=0                    local
  64.     int        proptaken=0                    local
  65.     int        exit_opened=0                local
  66.     thing        machette
  67.     thing        shovel
  68.     thing        armdevice
  69.     thing        hammer
  70.     thing        key
  71.     thing        crank
  72.     thing        prop
  73.     sector    exit
  74.     sector    spider_cave1
  75.     sector    zero_lagoon
  76.         sector    island_beach0
  77.         sector    island_water0
  78.     sector    island_nitch
  79.          sector    spider_cave2
  80.         sector    left_path0
  81.         sector    right_path0
  82.         sector    left_path1
  83.     sector    ship_site
  84.     sector    ship_deck
  85.     sector    ship_inside0   
  86.     sector    ship_inside1       
  87.     sector    ship_inside2       
  88.     sector    ship_inside3
  89.     sector    inner_lag0       
  90.     sector    ruin_entry
  91.     sector    ruin_exit
  92.  
  93.  
  94. end
  95.  
  96. # ========================================================================================
  97.  
  98. code
  99.  
  100. startup:
  101.     player = GetLocalPlayerThing();
  102.     return;
  103.  
  104. removed:
  105.     if(getsenderref() == prop)            # prop removal.
  106.     {
  107.     SetHintSolved(hint23);
  108.     proptaken=1;
  109.     return;
  110.     }
  111.     if(GetSenderRef() == armdevice)
  112.     {
  113.     SetHintSolved(hint10);
  114.     return;
  115.     }
  116.     if(GetSenderRef() == crank)
  117.     {
  118.     SetHintSolved(hint20);
  119.     }
  120.     return;
  121.         
  122. entered:
  123.     if(getsenderref() == spider_cave1)        # spider cave1. 
  124.     {
  125.     SetHintSolved(hint2);
  126.     return;
  127.     }
  128.     if(getsenderref() == zero_lagoon)        # zero lagoon area. 
  129.     {
  130.     if(got_shovel == 0) return;
  131.     SetHintSolved(hint4);
  132.     return;
  133.     }
  134.     if((getsenderref() == island_beach0) || (getsenderref() == island_water0))# beach at center island. 
  135.     {
  136.     if(got_shovel == 0) return;
  137.     SetHintSolved(hint5);
  138.     return;
  139.     }
  140.     if(getsenderref() == island_nitch)        # nitch in beach at center island. 
  141.     {
  142.     if(got_shovel == 0) return;
  143. #=========== Take The Player Back To The Lagoon =================
  144.     if(returning == 1)    
  145.         {
  146.         SetHintSolved(hint6);
  147.         SetHintUnsolved(hint5);
  148.         return;
  149.         }
  150. #================================================================
  151.     SetHintSolved(hint6);
  152.     return;
  153.     }
  154.     if(getsenderref() == spider_cave2)        # island beach spider cave. 
  155.     {
  156.     if(got_shovel == 0) return;
  157. #=========== Take The Player Back To The Lagoon =================
  158.     if(returning == 1)    
  159.         {
  160.         SetHintSolved(hint7);
  161.         SetHintUnsolved(hint6);
  162.         return;                    
  163.         }
  164. #================================================================
  165.     SetHintSolved(hint7);
  166.     return;
  167.     }
  168.     if(getsenderref() == ship_site)        # ship sighted. 
  169.     {
  170.     if(got_shovel == 0) return;
  171.     SetHintSolved(hint8);
  172.     return;
  173.     }
  174.     if(getsenderref() == ship_deck)        # on deck of ship. 
  175.     {
  176.     if(got_shovel == 0) return;
  177.     SetHintSolved(hint9);
  178.     return;
  179.     }
  180.     if(getsenderref() == ship_inside0)        # inside ship area0. 
  181.     {
  182.     SetHintSolved(hint13);
  183.     return;
  184.     }
  185.     if(getsenderref() == ship_inside1)        # inside ship area1. 
  186.     {
  187.     SetHintSolved(hint14);
  188.     return;
  189.     }
  190.     if(getsenderref() == ship_inside2)        # inside ship area2. 
  191.     {
  192.     SetHintSolved(hint15);
  193.     return;
  194.     }
  195.     if(getsenderref() == ship_inside3)        # inside ship area3. 
  196.     {
  197.     SetHintSolved(hint16);
  198.     return;
  199.     }
  200. #=========== Take The Player Back To The Lagoon =================
  201.     if((getsenderref() == left_path0) || (getsenderref() == right_path0)) # player going around island. 
  202.     {
  203.     if(returning != 1) return;
  204.     SetHintSolved(hint7);
  205.     SetHintSolved(hint6);
  206.     SetHintUnsolved(hint5);
  207.     return;                    
  208.     }
  209.     if(getsenderref() == left_path1)
  210.     {
  211.     if(returning != 1) return;
  212.     if(proptaken == 1)
  213.         {
  214.         SetHintSolved(hint24);
  215.         }
  216.     SetHintSolved(hint5);
  217.     return;
  218.     }
  219. #================================================================
  220.     if(getsenderref() == inner_lag0)
  221.     {
  222.     SetHintSolved(hint27);
  223.     return;       
  224.     }
  225.     if(getsenderref() == ruin_entry)
  226.     {
  227.     SetHintSolved(hint28);
  228.     return;       
  229.     }
  230.     if(getsenderref() == ruin_exit)
  231.     {
  232.     SetHintSolved(hint29);
  233.         if(exit_opened == 1)
  234.         {
  235.         SetHintUnsolved(hint28);
  236.         }
  237.     return;       
  238.     }
  239.     if(getsenderref() == exit)            # exit level. 
  240.     {
  241.     SetHintSolved(hint40);
  242.     }
  243.     return;       
  244.  
  245. taken:
  246.     if(GetSenderRef() == machette)
  247.     {
  248.     SetHintSolved(hint1);
  249.     return;
  250.     }       
  251.     if(GetSenderRef() == shovel)
  252.     {
  253.     SetHintSolved(hint3);
  254.     SetHintUnsolved(hint2);
  255.     got_shovel=1;
  256.     return;
  257.     }
  258.     if(GetSenderRef() == hammer)
  259.     {
  260.     SetHintSolved(hint12);
  261.     return;
  262.     }
  263.     if(GetSenderRef() == key)
  264.     {
  265.     SetHintSolved(hint18);
  266.     return;
  267.     }
  268.     return;
  269.  
  270. user1:                            # torpedo.
  271.     SetHintSolved(hint11);
  272.     return;
  273.  
  274. user2:                            # hatch cover.
  275.     SetHintSolved(hint17);
  276.     return;
  277.  
  278. user3:                            # door lock.
  279.     SetHintSolved(hint19);
  280.     return;
  281.  
  282. user4:
  283.     if(getparam(0) == 1)                # boom rotated.
  284.     {
  285.     SetHintSolved(hint21);
  286.     return;
  287.     }
  288.     if(getparam(0) == 0)                # boom reset.
  289.     {
  290.     if(dug == 1) return;
  291.     SetHintUnsolved(hint21);
  292.     }
  293.     return;
  294.  
  295. user5:                            # slumpsand switch.
  296.     SetHintSolved(hint22);
  297.     dug=1;
  298. #=========== Take The Player Back To The Lagoon =================
  299.     returning=1;
  300.     SetHintUnsolved(hint7);
  301.     return;
  302.  
  303. user6:                            # underwater temple.
  304.     if(getparam(0) == 1)
  305.     {
  306.     SetHintSolved(hint26);
  307.     return;
  308.     }
  309.     else
  310.     {
  311.     SetHintSolved(hint25);
  312.     }
  313.     return;
  314.  
  315. user7:                            # totem switch.
  316.     SetHintSolved(hint30);
  317. #=========== Time to go ============================
  318.     exit_opened=1;
  319.     SetHintUnsolved(hint29);
  320.     return;
  321.  
  322. end
  323.  
  324.